package com.hh.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hh.demo.entity.Toy;
import com.hh.demo.mapper.ToyMapper;
import com.hh.demo.service.IToyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 吉吉国王
 * @since 2022-12-05
 */
@Service
public class ToyServiceImpl extends ServiceImpl<ToyMapper, Toy> implements IToyService {
    @Resource
    private ToyMapper toyMapper;

    @Override
    public List<Toy> queryAll() {
        return toyMapper.selectList(null);
    }
}
